Fix an oversight
authorMatthias Clasen <mclasen@redhat.com>
Tue, 10 Nov 2015 11:34:15 +0000 (06:34 -0500)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 10 Nov 2015 13:23:18 +0000 (13:23 +0000)
We must set the construct-only "type" to GTK_WINDOW_POPUP, otherwise
this ends upo being a regular toplevel.

gtk/gtktooltipwindow.c

index ba71113c2a7e366d8c8aa0131bda86a967e22f1b..cb7cb53fc9a21a4bf3865188dba078887ab77a1c 100644 (file)
@@ -99,7 +99,9 @@ gtk_tooltip_window_init (GtkTooltipWindow *self)
 GtkWidget *
 gtk_tooltip_window_new (void)
 {
-  return g_object_new (GTK_TYPE_TOOLTIP_WINDOW, NULL);
+  return g_object_new (GTK_TYPE_TOOLTIP_WINDOW,
+                       "type", GTK_WINDOW_POPUP,
+                       NULL);
 }
 
 void